<?php
use think\facade\Route;

Route::domain('/', 'index'); //根
Route::domain('www', 'index'); //默认模块
Route::domain('api', 'api'); // 配置API模块
Route::domain('*', 'index'); // 泛域名
